@powerhousedao/powerhouse-vetra-packages 6.2.3-dev.25 → 6.2.3-dev.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/assets/{entry-GDzXcBs1.js → entry-DhaRsTID.js} +2 -2
- package/dist/browser/assets/{projection-entry-BJpyPvov.js → projection-entry-qrF_MLsE.js} +3 -3
- package/dist/browser/{editor-Dk_HEgr2.js → editor-C7KBR_ar.js} +124 -4
- package/dist/browser/{editor-Dk_HEgr2.js.map → editor-C7KBR_ar.js.map} +1 -1
- package/dist/browser/{editor-CYdXmSpt.js → editor-CiR6XQBO.js} +2 -2
- package/dist/browser/{editor-CYdXmSpt.js.map → editor-CiR6XQBO.js.map} +1 -1
- package/dist/browser/editors/document-model-editor/module.js +1 -1
- package/dist/browser/editors/generic-drive-explorer/index.js +7 -7
- package/dist/browser/editors/generic-drive-explorer/index.js.map +1 -1
- package/dist/browser/editors/generic-drive-explorer/module.js +1 -1
- package/dist/browser/{folder-view-DjGlA0kT.js → folder-view-DSgXN79D.js} +2 -2
- package/dist/browser/{folder-view-DjGlA0kT.js.map → folder-view-DSgXN79D.js.map} +1 -1
- package/dist/browser/{graphql-editor-C9Nc_cOY.js → graphql-editor-Cgi5UOrF.js} +2 -2
- package/dist/browser/{graphql-editor-C9Nc_cOY.js.map → graphql-editor-Cgi5UOrF.js.map} +1 -1
- package/dist/browser/index.js +4 -3
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/{src-CrUksCLW-Co0PBoNN.js → src-CrUksCLW-B2dkRdgq.js} +4 -5
- package/dist/browser/src-CrUksCLW-B2dkRdgq.js.map +1 -0
- package/dist/browser/{state-schemas-BSc_36Vd.js → state-schemas-B5Bk_l1s.js} +4 -4
- package/dist/browser/{state-schemas-BSc_36Vd.js.map → state-schemas-B5Bk_l1s.js.map} +1 -1
- package/dist/node/{editor-CeSEXEgf.mjs → editor-96sMeumV.mjs} +124 -4
- package/dist/node/{editor-CeSEXEgf.mjs.map → editor-96sMeumV.mjs.map} +1 -1
- package/dist/node/{editor-BZZ0eN3p.mjs → editor-wqvKwcO5.mjs} +2 -2
- package/dist/node/{editor-BZZ0eN3p.mjs.map → editor-wqvKwcO5.mjs.map} +1 -1
- package/dist/node/editors/document-model-editor/module.mjs +1 -1
- package/dist/node/editors/generic-drive-explorer/index.mjs +7 -7
- package/dist/node/editors/generic-drive-explorer/index.mjs.map +1 -1
- package/dist/node/editors/generic-drive-explorer/module.mjs +1 -1
- package/dist/node/{folder-view-B2Jo-wsr.mjs → folder-view-ktfv2Cvw.mjs} +2 -2
- package/dist/node/{folder-view-B2Jo-wsr.mjs.map → folder-view-ktfv2Cvw.mjs.map} +1 -1
- package/dist/node/index.mjs +4 -3
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/{src-CrUksCLW-BHpiSprT.mjs → src-CrUksCLW-TvF37aMo.mjs} +4 -5
- package/dist/node/src-CrUksCLW-TvF37aMo.mjs.map +1 -0
- package/dist/node/{state-schemas-CWuLjYFF.mjs → state-schemas-BHuo0GPl.mjs} +3 -3
- package/dist/node/{state-schemas-CWuLjYFF.mjs.map → state-schemas-BHuo0GPl.mjs.map} +1 -1
- package/package.json +8 -8
- package/dist/browser/src-CrUksCLW-Co0PBoNN.js.map +0 -1
- package/dist/node/src-CrUksCLW-BHpiSprT.mjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as errorToInfo, t as createForwardingLogger, u as instrumentPgPool } from "./forwarding-logger-
|
|
2
|
-
import { n as defaultLoadFactory, t as buildWorkerExecutor } from "./build-worker-executor-
|
|
1
|
+
import { n as errorToInfo, t as createForwardingLogger, u as instrumentPgPool } from "./forwarding-logger-CnuVDVze.js";
|
|
2
|
+
import { n as defaultLoadFactory, t as buildWorkerExecutor } from "./build-worker-executor-Bvoba-AV.js";
|
|
3
3
|
import { ConsoleLogger } from "document-model";
|
|
4
4
|
import { isMainThread, parentPort } from "node:worker_threads";
|
|
5
5
|
//#region src/executor/worker/run-worker.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as DocumentMetaCache, S as KyselyOperationIndex, b as EventBus, d as KyselyOperationStore, f as KyselyKeyframeStore, n as errorToInfo, o as REACTOR_SCHEMA, ot as ReactorEventTypes, p as DocumentModelRegistry, t as createForwardingLogger, u as instrumentPgPool, w as CollectionMembershipCache, x as KyselyWriteCache } from "./forwarding-logger-
|
|
2
|
-
import { a as KyselyDocumentView, c as ReadModelCoordinator, n as ConsistencyTracker, t as KyselyDocumentIndexer } from "./document-indexer-
|
|
3
|
-
import { n as defaultLoadFactory } from "./build-worker-executor-
|
|
1
|
+
import { C as DocumentMetaCache, S as KyselyOperationIndex, b as EventBus, d as KyselyOperationStore, f as KyselyKeyframeStore, n as errorToInfo, o as REACTOR_SCHEMA, ot as ReactorEventTypes, p as DocumentModelRegistry, t as createForwardingLogger, u as instrumentPgPool, w as CollectionMembershipCache, x as KyselyWriteCache } from "./forwarding-logger-CnuVDVze.js";
|
|
2
|
+
import { a as KyselyDocumentView, c as ReadModelCoordinator, n as ConsistencyTracker, t as KyselyDocumentIndexer } from "./document-indexer-BVTGbEB0.js";
|
|
3
|
+
import { n as defaultLoadFactory } from "./build-worker-executor-Bvoba-AV.js";
|
|
4
4
|
import { ConsoleLogger } from "document-model";
|
|
5
5
|
import { isMainThread, parentPort } from "node:worker_threads";
|
|
6
6
|
//#region src/projection/projection-worker/build-projection-stack.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as __exportAll } from "./rolldown-runtime-DC62tzP2.js";
|
|
2
2
|
import { c as Kind, p as GraphQLError, t as parse } from "./parser-DtbeHA3H.js";
|
|
3
3
|
import { a as printSchema, gt as visit, mt as print, n as initialSchemaStr, o as buildASTSchema, r as typeDefsDoc, t as hiddenQueryTypeDefDoc, y as getVariableValues } from "./documents-CRzouuNR.js";
|
|
4
|
-
import {
|
|
4
|
+
import { i as Primitive, m as twMerge, t as Modal } from "./src-CrUksCLW-B2dkRdgq.js";
|
|
5
5
|
import { addModule, addOperation, addOperationError, deleteModule, deleteOperation, deleteOperationError, generateId, releaseNewVersion, setAuthorName, setAuthorWebsite, setInitialState, setModelDescription, setModelExtension, setModelId, setModelName, setModuleName, setOperationDescription, setOperationErrorName, setOperationName, setOperationSchema, setStateSchema } from "@powerhousedao/shared/document-model";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
import * as React$1 from "react";
|
|
@@ -92,6 +92,126 @@ function useSchemaContext() {
|
|
|
92
92
|
return useContext(SchemaContext);
|
|
93
93
|
}
|
|
94
94
|
//#endregion
|
|
95
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.3_@types+react@19.2.14_react@19.2.6/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
|
|
96
|
+
function setRef(ref, value) {
|
|
97
|
+
if (typeof ref === "function") return ref(value);
|
|
98
|
+
else if (ref !== null && ref !== void 0) ref.current = value;
|
|
99
|
+
}
|
|
100
|
+
function composeRefs(...refs) {
|
|
101
|
+
return (node) => {
|
|
102
|
+
let hasCleanup = false;
|
|
103
|
+
const cleanups = refs.map((ref) => {
|
|
104
|
+
const cleanup = setRef(ref, node);
|
|
105
|
+
if (!hasCleanup && typeof cleanup == "function") hasCleanup = true;
|
|
106
|
+
return cleanup;
|
|
107
|
+
});
|
|
108
|
+
if (hasCleanup) return () => {
|
|
109
|
+
for (let i = 0; i < cleanups.length; i++) {
|
|
110
|
+
const cleanup = cleanups[i];
|
|
111
|
+
if (typeof cleanup == "function") cleanup();
|
|
112
|
+
else setRef(refs[i], null);
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
function useComposedRefs(...refs) {
|
|
118
|
+
return React$1.useCallback(composeRefs(...refs), refs);
|
|
119
|
+
}
|
|
120
|
+
//#endregion
|
|
121
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-slot@1.3.0_@types+react@19.2.14_react@19.2.6/node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
122
|
+
// @__NO_SIDE_EFFECTS__
|
|
123
|
+
function createSlot(ownerName) {
|
|
124
|
+
const Slot2 = React$1.forwardRef((props, forwardedRef) => {
|
|
125
|
+
let { children, ...slotProps } = props;
|
|
126
|
+
let slottableElement = null;
|
|
127
|
+
let hasSlottable = false;
|
|
128
|
+
const newChildren = [];
|
|
129
|
+
if (isLazyComponent(children) && typeof use === "function") children = use(children._payload);
|
|
130
|
+
React$1.Children.forEach(children, (maybeSlottable) => {
|
|
131
|
+
if (isSlottable(maybeSlottable)) {
|
|
132
|
+
hasSlottable = true;
|
|
133
|
+
const slottable = maybeSlottable;
|
|
134
|
+
let child = "child" in slottable.props ? slottable.props.child : slottable.props.children;
|
|
135
|
+
if (isLazyComponent(child) && typeof use === "function") child = use(child._payload);
|
|
136
|
+
slottableElement = getSlottableElementFromSlottable(slottable, child);
|
|
137
|
+
newChildren.push(slottableElement?.props?.children);
|
|
138
|
+
} else newChildren.push(maybeSlottable);
|
|
139
|
+
});
|
|
140
|
+
if (slottableElement) slottableElement = React$1.cloneElement(slottableElement, void 0, newChildren);
|
|
141
|
+
else if (!hasSlottable && React$1.Children.count(children) === 1 && React$1.isValidElement(children)) slottableElement = children;
|
|
142
|
+
const slottableElementRef = slottableElement ? getElementRef(slottableElement) : void 0;
|
|
143
|
+
const composedRef = useComposedRefs(forwardedRef, slottableElementRef);
|
|
144
|
+
if (!slottableElement) {
|
|
145
|
+
if (children || children === 0) throw new Error(hasSlottable ? createSlottableError(ownerName) : createSlotError(ownerName));
|
|
146
|
+
return children;
|
|
147
|
+
}
|
|
148
|
+
const mergedProps = mergeProps(slotProps, slottableElement.props ?? {});
|
|
149
|
+
if (slottableElement.type !== React$1.Fragment) mergedProps.ref = forwardedRef ? composedRef : slottableElementRef;
|
|
150
|
+
return React$1.cloneElement(slottableElement, mergedProps);
|
|
151
|
+
});
|
|
152
|
+
Slot2.displayName = `${ownerName}.Slot`;
|
|
153
|
+
return Slot2;
|
|
154
|
+
}
|
|
155
|
+
var Slot = /* @__PURE__ */ createSlot("Slot");
|
|
156
|
+
var SLOTTABLE_IDENTIFIER = Symbol.for("radix.slottable");
|
|
157
|
+
var getSlottableElementFromSlottable = (slottable, child) => {
|
|
158
|
+
if ("child" in slottable.props) {
|
|
159
|
+
const child2 = slottable.props.child;
|
|
160
|
+
if (!React$1.isValidElement(child2)) return null;
|
|
161
|
+
return React$1.cloneElement(child2, void 0, slottable.props.children(child2.props.children));
|
|
162
|
+
}
|
|
163
|
+
return React$1.isValidElement(child) ? child : null;
|
|
164
|
+
};
|
|
165
|
+
function mergeProps(slotProps, childProps) {
|
|
166
|
+
const overrideProps = { ...childProps };
|
|
167
|
+
for (const propName in childProps) {
|
|
168
|
+
const slotPropValue = slotProps[propName];
|
|
169
|
+
const childPropValue = childProps[propName];
|
|
170
|
+
if (/^on[A-Z]/.test(propName)) {
|
|
171
|
+
if (slotPropValue && childPropValue) overrideProps[propName] = (...args) => {
|
|
172
|
+
const result = childPropValue(...args);
|
|
173
|
+
slotPropValue(...args);
|
|
174
|
+
return result;
|
|
175
|
+
};
|
|
176
|
+
else if (slotPropValue) overrideProps[propName] = slotPropValue;
|
|
177
|
+
} else if (propName === "style") overrideProps[propName] = {
|
|
178
|
+
...slotPropValue,
|
|
179
|
+
...childPropValue
|
|
180
|
+
};
|
|
181
|
+
else if (propName === "className") overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
|
|
182
|
+
}
|
|
183
|
+
return {
|
|
184
|
+
...slotProps,
|
|
185
|
+
...overrideProps
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
function getElementRef(element) {
|
|
189
|
+
let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
|
|
190
|
+
let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
191
|
+
if (mayWarn) return element.ref;
|
|
192
|
+
getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
|
|
193
|
+
mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
194
|
+
if (mayWarn) return element.props.ref;
|
|
195
|
+
return element.props.ref || element.ref;
|
|
196
|
+
}
|
|
197
|
+
function isSlottable(child) {
|
|
198
|
+
return React$1.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
|
|
199
|
+
}
|
|
200
|
+
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
201
|
+
function isLazyComponent(element) {
|
|
202
|
+
return element != null && typeof element === "object" && "$$typeof" in element && element.$$typeof === REACT_LAZY_TYPE && "_payload" in element && isPromiseLike(element._payload);
|
|
203
|
+
}
|
|
204
|
+
function isPromiseLike(value) {
|
|
205
|
+
return typeof value === "object" && value !== null && "then" in value;
|
|
206
|
+
}
|
|
207
|
+
var createSlotError = (ownerName) => {
|
|
208
|
+
return `${ownerName} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`;
|
|
209
|
+
};
|
|
210
|
+
var createSlottableError = (ownerName) => {
|
|
211
|
+
return `${ownerName} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`;
|
|
212
|
+
};
|
|
213
|
+
var use = React$1[" use ".trim().toString()];
|
|
214
|
+
//#endregion
|
|
95
215
|
//#region ../../node_modules/.pnpm/clsx@2.0.0/node_modules/clsx/dist/clsx.mjs
|
|
96
216
|
function r$1(e) {
|
|
97
217
|
var t, f, n = "";
|
|
@@ -3502,7 +3622,7 @@ function OperationErrors({ operation, addOperationError, deleteOperationError, s
|
|
|
3502
3622
|
}
|
|
3503
3623
|
//#endregion
|
|
3504
3624
|
//#region editors/document-model-editor/components/operation.tsx
|
|
3505
|
-
const GraphqlEditor = lazy(() => import("./graphql-editor-
|
|
3625
|
+
const GraphqlEditor = lazy(() => import("./graphql-editor-Cgi5UOrF.js"));
|
|
3506
3626
|
function Operation(props) {
|
|
3507
3627
|
const { operation, module, allOperationNames, lastCreatedOperationId, onAddOperationAndInitialSchema, updateOperationName, deleteOperation, updateOperationSchema, setOperationDescription, addOperationError, deleteOperationError, setOperationErrorName, toggleNoInputRequired } = props;
|
|
3508
3628
|
const noInputRequired = isEmptyOperationSchema(operation.schema);
|
|
@@ -4239,7 +4359,7 @@ function useVersionAdvisory(args) {
|
|
|
4239
4359
|
//#endregion
|
|
4240
4360
|
//#region editors/document-model-editor/editor.tsx
|
|
4241
4361
|
var editor_exports = /* @__PURE__ */ __exportAll({ default: () => Editor });
|
|
4242
|
-
const StateSchemas = lazy(() => import("./state-schemas-
|
|
4362
|
+
const StateSchemas = lazy(() => import("./state-schemas-B5Bk_l1s.js"));
|
|
4243
4363
|
const noopSetStateSchema = () => void 0;
|
|
4244
4364
|
const noopSetInitialState = () => void 0;
|
|
4245
4365
|
function Editor() {
|
|
@@ -4553,4 +4673,4 @@ function Editor() {
|
|
|
4553
4673
|
//#endregion
|
|
4554
4674
|
export { makeInitialSchemaDoc as a, validateStateObject as c, Editor as default, StateValidationError as i, safeParseSdl as l, Button as n, makeMinimalObjectForStateType as o, ensureValidStateSchemaName as r, makeStateSchemaNameForScope as s, editor_exports as t, useSchemaContext as u };
|
|
4555
4675
|
|
|
4556
|
-
//# sourceMappingURL=editor-
|
|
4676
|
+
//# sourceMappingURL=editor-C7KBR_ar.js.map
|